import Layout from '@/layout'
export default {
  path: '/employee',
  component: Layout,
  children: [{
    path: '/employee',
    name: 'employee',
    component: () => import('@/views/employee/index'),
    meta: { title: '员工', icon: 'people' } // 路由元信息(就是路由上的字段) title是导航的文本icon是图标
  },
  {
    hidden: true, // 不在左侧sidebar中显示
    path: '/employee/detail/:id?', // ?可选
    name: 'employee',
    component: () => import('@/views/employee/detail'),
    meta: { title: '员工详情', icon: 'people' } // 路由元信息(就是路由上的字段) title是导航的文本icon是图标
  }
  ]
}
